﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace FlashCards.Dto
{
    [DataContract]
    public class FlashcardSet
    {
        public FlashcardSet()
        {
            DateModified = DateTime.Now;
        }


        [DataMember]
        public int Id { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public User Creator { get; set; }
        [DataMember]
        public string Tags { get; set; }
        [DataMember]
        public bool IsPublic { get; set; }
        [DataMember]
        public DateTime DateModified { get; set; }
        [DataMember]
        public List<Flashcard> Flashcards { get; set; }
        [DataMember]
        public Category Category { get; set; }
    }
}
